package models.repository.common;


import models.entities.ShoppingCartEntity;
import models.exceptions.CreateEntityException;
import models.exceptions.DeleteEntityException;
import models.exceptions.GetEntityException;
import models.exceptions.UpdateEntityException;

import java.io.IOException;
@Deprecated
public interface ShoppingCartRepository {
    void addProduct(int id, int userId) throws CreateEntityException, IOException;

    ShoppingCartEntity getShoppingCart(int userId) throws GetEntityException, IOException;

    void delete(int productId, int userId) throws DeleteEntityException, IOException;

    void update(ShoppingCartEntity shoppingCart, int id) throws UpdateEntityException, IOException;
}
